﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Frame_Header.aspx.cs" Inherits="Garlic.Frame_Header" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="themes/blue/global.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="Javascript/jquery-1.5.2.min.js"></script>
    <script type="text/javascript">
        $(function () {
            //menu
            $('.menu_ul li a').click(
					   function () {
					       $(this).parent('li').addClass('current').siblings('li').removeClass('current');
					   }
					   );
            $('.menu_ul li').eq('0').addClass('current').siblings('li').removeClass('current');
        });

        //        function saveURL(currentURL) {
        //            document.getElementById("hfieldURL").value = currentURL;
        //            alert(document.getElementById("hfieldURL").value);
        //        }
        
    </script>
</head>
<body>
    <div class="header">
        <div class="logo">
            <a  target="main">Port Dangerous Goods Management System</a></div>
        <div class="loginfo">
            <span class="plzlogin"><a href="Default.aspx" target="_parent">[请登录]</a></span><span
                class="welcome">欢迎,
                <asp:Literal ID="labLoginName" runat="server"></asp:Literal>
                |
                <asp:Literal ID="labData" runat="server"></asp:Literal>
                |
                <asp:LinkButton ID="btnLogout" runat="server" OnClick="btnLogout_Click">[退出]</asp:LinkButton>
            </span>
        </div>
        <!--menu-start-->
        <div class="menu_left">
        </div>
        <div class="menu" id="divMenu" runat="server">
            <%-- <ul class="menu_ul clearfix">
                <li><a href="frame_main2.html" target="main">基础信息维护</a></li>
                <li class="current"><a href="frame_main2.html" target="main">系统维护</a></li>
                <li><a href="frame_main2.html" target="main">流程审批</a></li>
                <li><a href="frame_main2.html" target="main">系统操作</a></li>
            </ul>--%>
            <ul class="menu_ul clearfix">
                <asp:Repeater ID="topMenu" runat="server">
                    <ItemTemplate>
                        <li><a href='Frame_Navigation.aspx?parentMenuID=<%# Eval("Menu_id") %>&parentMenuName=<%# Eval("Menu_name") %>'
                            target="nav">
                            <%# Eval("Menu_name")%></a></li>
                        <%--<div  id='<%# Eval("Menu_id") %>' name='<%# Eval("Menu_id") %>' class='tabOff'>
                    <a href='MainFrame.aspx?parentMenuID=<%# Eval("Menu_id") %>'>
                        <%# Eval("Menu_name") %>
                    </a>
                	</div>--%>
                    </ItemTemplate>
                </asp:Repeater>
            </ul>
        </div>
        <div class="menu_right" id="divMenu_right" runat="server">
        </div>
        <script language="javascript" type="text/javascript">
          var mcount=<%= GetMenuInfo() %>;
          document.getElementById("divMenu").style.width= mcount*108 +3;
          document.getElementById("divMenu_right").style.left= mcount*108 +203;

           $(function () {
            //menu
           var index= <%= GetCurrentMenuIndex() %>;
           switch (index) {
           case 0:$('.menu_ul li').eq('0').addClass('current').siblings('li').removeClass('current');break;
           case 1:$('.menu_ul li').eq('1').addClass('current').siblings('li').removeClass('current');break;
           case 2:$('.menu_ul li').eq('2').addClass('current').siblings('li').removeClass('current');break;
           case 3:$('.menu_ul li').eq('3').addClass('current').siblings('li').removeClass('current');break;
           case 4:$('.menu_ul li').eq('4').addClass('current').siblings('li').removeClass('current');break;
    default:    $('.menu_ul li').eq('0').addClass('current').siblings('li').removeClass('current');break;
        
}
            
        });
          
        </script>
        <!--menu-end-->
    </div>
</body>
</html>
